package com.woniu.product.client;

import com.woniu.core.util.Result;
import com.woniu.product.client.dto.CoachDto;
import com.woniu.product.client.dto.GymAccountDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Set;

@FeignClient(name = "account-server",path = "/account")
public interface AccountServerClient {

    //根据adminId查询管理员姓名
    @GetMapping("/tAdminInfo/queryAdminNameById.admin/{adminId}")
    public Result queryAdminNameById(@PathVariable("adminId") Integer adminId);

    //根据gymId查询场馆账号信息（有问题）
    @GetMapping("/tGymAccount/findGymAccountById/{gymId}.gym")
    @ApiOperation("根据gymId查询场馆账号信息")
    public Result<GymAccountDto> findGymAccountById(@PathVariable("gymId")Integer gymId);

    //根据教练id查询教练账号信息
    @ApiOperation("根据id查询教练账号信息")
    @GetMapping("/tCoach/getCoachAccountInfoById/{coachId}.coach")
    public Result<CoachDto> getCoachAccountById(@PathVariable("coachId") Integer coachId);

}
